Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | import enhancer from './store-enhancer'; |
||
9 | const createRouter = ({ |
||
10 | history, |
||
11 | routes, |
||
12 | slice = DEFAULT_SLICE, |
||
13 | immutable = false |
||
14 | }) => { |
||
15 | const locationParser = createLocationParser(routes); |
||
16 | const routeParser = createRouteParser(routes); |
||
17 | |||
18 | return { |
||
19 | reducer: reducer({ locationParser, immutable }), |
||
20 | enhancer: enhancer({ history, slice, locationParser, immutable }), |
||
21 | middleware: middleware({ history, routeParser }) |
||
22 | }; |
||
23 | }; |
||
24 | |||
25 | export default createRouter; |